EC_WriteWordParameter

Function block EC_WriteWordParameter
Writes a word through Service Data Object (SDO).
VAR_IN_OUT
V AxisIn AXIS_REF Reference to an axis.
V IoIn IO_REF Reference to an I/O module.
VAR_INPUT
V Execute BOOL Starts the action at rising edge.
V ObjectIndex WORD CANopen index of the object. See your device manual to get the value.
V SubIndex BYTE CANopen subindex of the object. See your device manual to get the value.
V Value WORD Value to be written to the object.
VAR_OUTPUT
V Done BOOL Writes the data successfully.
V Busy BOOL The function block is not finished and new output values are to be expected.
V Error BOOL Signals that an error has occurred within the function block.
V ErrorID MC_Error Error identification.
  • It's either AXIS_REF or IO_REF. By default, AXIS_REF is chosen. If there's no axis, the I/O module will be chosen.
  • Used to update the drive configuration. The servo drive may or may not update immediately. See your drive's manual for more information.
  EC_WriteWordParameter  
AXIS_REF   AxisIn   Axis   AXIS_REF
IO_REF   IoIn   Io   IO_REF
BOOL   Execute   Done   BOOL
WORD   ObjectIndex   Busy   BOOL
BYTE   SubIndex   Error   BOOL
WORD   Value   ErrorID   MC_Error